﻿package social.VKontakte
{	
	import vk.APIConnection;

	public class VKRequest
	{
		public var Method:String;
		public var Data:Object;
		public var OnComplete:Function;
		public var OnError:Function;
		
		public function Process(AConnection:APIConnection):void
		{
			AConnection.api(Method, Data.toAPI(), OnComplete, OnError);
		}
		
		public function toString():String
		{
			return Method;
		}
	}	
}
